<template>
    <div id="nav" class="text-center">
        <router-link to="/">Home</router-link> |
		<router-link to="/javascript/index">Javascript</router-link> |
        <router-link to="/es6/index">ES6</router-link> |
        <router-link to="/directive">Directive</router-link> |
        <router-link to="/form">Form</router-link> |
        <router-link to="/watch">Watch</router-link> |
        <router-link to="/cli">Vue Cli</router-link> |
        <router-link to="Router">Vue Router</router-link> |
        <router-link to="Vuex">Vuex</router-link> |
    </div>
</template>

<script>
export default {
  props: {
    msg: String
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="scss">
#nav {
  padding: 16px;
  background-color: #eee;
  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: red;
    }
  }
}
h3 {
  margin: 40px 0 0;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
